﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Silverlight.Controls.ToolTips.Tests
{
    [TestClass]
    public class ToolTipTimerTests
    {
        [TestMethod]
        public void WhenConstructWithTimeSpanZeroThenInitialDelayIsTimeSpanZero()
        {
            ToolTipTimer toolTipTimer = new ToolTipTimer(TimeSpan.Zero, TimeSpan.Zero);
            Assert.IsTrue(toolTipTimer.InitialDelay == TimeSpan.Zero);
        }

        [TestMethod]
        public void WhenConstructWithTimeSpanZeroThenMaximumTicksIsTimeSpanZero()
        {
            ToolTipTimer toolTipTimer = new ToolTipTimer(TimeSpan.Zero, TimeSpan.Zero);
            Assert.IsTrue(toolTipTimer.MaximumTicks == TimeSpan.Zero);
        }

        [TestMethod]
        public void WhenNotStartedCurrentTickIsZero()
        {
            ToolTipTimer toolTipTimer = new ToolTipTimer(TimeSpan.Zero, TimeSpan.Zero);
            Assert.IsTrue(toolTipTimer.CurrentTick == 0);
        }
    }
}